package com.gaga.console.core.controller.bv;


import com.gaga.common.path.ApiPath;
import com.gaga.common.result.Result;
import com.gaga.console.core.entity.dto.SubmitAdviceDto;
import com.gaga.console.core.service.BvAdviceService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 用户信息表 前端控制器
 *
 * @author liujia
 * @since 2025-03-27
 */
@RestController
@RequestMapping(ApiPath.ROOT + "/bv/advice")
public class BvAdviceController {

    @Autowired
    private BvAdviceService bvAdviceService;

    /**
     * 提交意见
     */
    @ApiOperation(value = "提交意见")
    @PostMapping("/submitAdvice")
    public Result submitAdvice(@RequestBody SubmitAdviceDto dto) {
        bvAdviceService.submitAdvice(dto);
        return Result.ok();
    }

}
